<template>
  <div class="no-shop">
    <img :src="img" alt />
    <p>您的购物车还没有商品</p>
    <div @click="intoindex">去逛逛吧</div>
  </div>
</template>

<script>
import img from "@/assets/image/cart-onshop.png";
export default {
  data() {
    return {
      img: img,
    };
  },
  methods: {
    intoindex(){
      this.$router.replace('/index')
    }
  },
};
</script>

<style lang="stylus" scoped>
.no-shop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  img {
    margin-top: 216px;
    height: 103px;
    width: 120px;
  }

  p {
    margin-top: 21px;
    color: #9B9AA8;
    font-size: 14px;
  }

  div {
    width: 223px;
    height: 47px;
    background: #BB2741;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    line-height: 47px;
    margin-top: 31px;
  }
}
</style>